<?php
/**
 * User zgh
 * Email 1803897171@qq.com
 * Date 2021/7/31
 **/

namespace app\api\controller;

use app\api\service\UserService;
use app\common\Annotation\ApiControllerAnnotation;
use app\common\controller\ApiController;
use think\facade\Request;
use hg\apidoc\annotation as Apidoc;

/**
 * @ApiControllerAnnotation(auth=1)
 * @Apidoc\Title("用户管理")
 * @Apidoc\Group("base")
 * Class UserController
 * @package app\api\controller
 */
class UserController extends ApiController
{

    /**
     * @Apidoc\Title("获取用户信息")
     * @Apidoc\Url("user/get_info")
     * @Apidoc\Returned(ref="app\api\apidoc\UserDoc\get_info")
     */
    public function get_info()
    {
        $user_id = Request::param("user_id");
        return success_json_response(UserService::getInfo($user_id));
    }
}